<template>
  <div>
    详情
		<img :src="item.url" alt="" width="100%">
		<h3>{{ item.title }}</h3>
		<p>{{ item.desc }}</p>
  </div>
</template>

<script>
import axios from "axios";
export default {
	data() {
		return {
			item: {}
		}
	},
  methods: {
    async getDetail() {
      const { id } = this.$route.params;
      const resp = await axios.post("/api/detail", {  id });
			this.item = resp.data.data
    },
  },
  created() {
    this.getDetail();
  },
};
</script>
